package com.fable.dal.mapper;

import com.fable.dal.model.FileRecordDO;
import com.fable.dal.model.FileRecordQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for FileRecord.
 */
public interface FileRecordMapper {
    /**
     * query count by query condition.
     */
    int countByquery(FileRecordQuery query);

    /**
     * delete by query condition.
     */
    int deleteByquery(FileRecordQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(FileRecordDO record);

    /**
     * insert selective.
     */
    int insertSelective(FileRecordDO record);

    /**
     * select by query condition.
     */
    List<FileRecordDO> selectByquery(FileRecordQuery query);

    /**
     * select by primary key.
     */
    FileRecordDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByquerySelective(@Param("record") FileRecordDO record, @Param("query") FileRecordQuery query);

    /**
     * update by query condition.
     */
    int updateByquery(@Param("record") FileRecordDO record, @Param("query") FileRecordQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FileRecordDO record);
}